Skip to content

fix(examples/chat): import vitest globals in e2e-overrides spec (unbreak app build / main red)#679

Merged
blove merged 2 commits into
mainfrom
fix/e2e-overrides-spec-import
Jun 17, 2026
Merged

fix(examples/chat): import vitest globals in e2e-overrides spec (unbreak app build / main red)#679
blove merged 2 commits into
mainfrom
fix/e2e-overrides-spec-import

Conversation

@blove

@blove blove commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Hotfix — main is red at 3c45540f (#677 merge)

examples/chat tsconfig.app.json includes src/**/*.ts with types: [], so the Angular app build type-checks every spec. e2e-overrides.spec.ts (added in #677) used ambient describe/it/expect/afterEach:

TS2593: Cannot find name 'describe'.
TS2304: Cannot find name 'afterEach' / 'it' / 'expect'.
→ Application bundle generation failed
→ Server at http://localhost:4200/ did not become ready within 120000ms
→ all 4 examples/chat e2e shards fail + Canonical demo → Vercel

nx test (vitest) masked it locally — only the app build (nx serve) compiles specs under tsconfig.app.json. Fix: import the globals from vitest explicitly, matching every existing spec.

Verified: nx build examples-chat-angular now completes (was failing).

🤖 Generated with Claude Code

…eak app build)

`tsconfig.app.json` includes `src/**/*.ts` with `types: []`, so the Angular
app build type-checks every spec. `e2e-overrides.spec.ts` (added in #677) used
ambient `describe`/`it`/`expect`/`afterEach`, which fail under the app build
(`TS2304`/`TS2593`) — the bundle never generates, the e2e server never starts,
and all 4 `examples/chat` e2e shards time out. Matches the existing specs by
importing the globals from vitest explicitly.

Regressed main at 3c45540 (#677 merge); local `nx test` masked it because only
`nx serve`/the app build compiles specs under tsconfig.app.json.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@blove blove enabled auto-merge (squash) June 17, 2026 04:12
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment Jun 17, 2026 4:18am

Request Review

@blove blove merged commit ed56e52 into main Jun 17, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant